package com.hankol.newretail.bean

import android.annotation.SuppressLint
import com.baselibrary.base.BasicBean
import com.baselibrary.bean.MediaInfo
import kotlinx.android.parcel.Parcelize

/**
 * @author: 关忆北、
 * @date: 2022/8/19
 * @Des：售后订单列表
 */
@SuppressLint("ParcelCreator")
@Parcelize
class AfterSaleListBean : BasicBean() {
    var afterSaleCode: String = ""
    var afterSaleDesc: String = ""
    var afterSaleId: Long = 0
    var afterSalePic: ArrayList<String> = arrayListOf()
    var afterSaleReason: Int = 0
    var afterSaleRefuseDesc: String = ""
    var afterSaleStatus: Int = -1//售后状态：0-处理中，1-已同意，2-已拒绝
    var auditReturnNum: Int = 0//审核退款数量
    var auditReturnPrice: Int = 0//审核退款金额
    var auditReturnScore: Int = 0//审核退还酒币
    var auditTime: Long = 0//审核时间/售后同意时间
    var poId: Long = 0//商品订单Id
    var requestTime: Long = 0//售后申请时间
    var returnType: Long = 0//退款方式:0-原支付返还
    var productOrderCode: String = ""//订单编号
    var products: ArrayList<Products> = arrayListOf()//订单编号

    @SuppressLint("ParcelCreator")
    @Parcelize
    class Products : BasicBean() {
        var num: Int = 0
        var afterSaleRequestPrice: Long = 0L
        var requestNum: Int = 0
        var skuId: Long = 0
        var shopId: Long = 0
        var spuId: Long = 0
        var shopName: String = ""
        var skuCover: String = ""
        var spuName: String = ""
        var specList: ArrayList<String> = arrayListOf()//规格字符串列表
    }
}

//售后申请提交所需参数
@Parcelize
data class AfterSalesApplyCommitBean(
    val mediaInfoList: List<MediaInfo>,
    val afterSaleReason: Int,
    val afterSaleDesc: String,
    val num: Int,
    val popiId: Long
) : BasicBean()